package com.cskaoyan.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @program: project2_market
 * @time: 2021/10/22
 * @author: yangshuai
 **/

@NoArgsConstructor
@Data
public class WxCommentListVo {

    private UserInfo userInfo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;
    private String[] picList;
    private String adminContent;
    private String content;

    @NoArgsConstructor
    @Data
    public static class UserInfo {
        private String nickName;
        private String avatarUrl;

        public UserInfo(String nickName, String avatarUrl) {
            this.nickName = nickName;
            this.avatarUrl = avatarUrl;
        }
    }

    public WxCommentListVo(UserInfo userInfo, Date addTime, String[] picList, String adminContent, String content) {
        this.userInfo = userInfo;
        this.addTime = addTime;
        this.picList = picList;
        this.adminContent = adminContent;
        this.content = content;
    }

}
